<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width,initial-scale=1.0" />
    <link rel="icon" href="<%= BASE_URL %>favicon.png" />
    <title>小米有品</title>
  <body>
    <div id="app"></div>
    <script>
    // iPhone6/7/8 50px=1rem
    ;(function() {
      let app = document.getElementById("app")
      function computed() {
        let HTML = document.documentElement,
          winW = HTML.clientWidth,
          designW = 750

        if (winW >= designW) {
          HTML.style.fontSize = '100px'
          return
        }
        HTML.style.fontSize = (winW / designW) * 100 + 'px'
      }
      computed()
      window.addEventListener('resize', computed)
    })()
    </script>
  </head>
  </body>
</html>
